/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_components/zhiqim_admin.htm
 *
 * Zhiqim Admin is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.manager.dbo;

import java.io.Serializable;
import java.sql.Timestamp;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 操作员表 对应表《ZMR_OPERATOR》
 */
@AnAlias("ZmrOperator")
@AnNew
@AnTable(table="ZMR_OPERATOR", key="OPERATOR_CODE", type="InnoDB")
public class ZmrOperator implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="OPERATOR_CODE", type="string,32", notNull=true)    private String operatorCode;    //1.操作员编码
    @AnTableField(column="OPERATOR_PASS", type="string,64,char", notNull=true)    private String operatorPass;    //2.操作员密码
    @AnTableField(column="OPERATOR_PASS_SALT", type="string,64,char", notNull=true)    private String operatorPassSalt;    //3.操作员密码盐值
    @AnTableField(column="OPERATOR_STATUS", type="byte", notNull=true)    private int operatorStatus;    //4.操作员状态：0正常，1停用
    @AnTableField(column="OPERATOR_TYPE", type="byte", notNull=true)    private int operatorType;    //5.操作员类型：0：超级管理员,1：管理员，2:操作员
    @AnTableField(column="OPERATOR_NAME", type="string,64", notNull=true)    private String operatorName;    //6.操作员名称
    @AnTableField(column="OPERATOR_AVATAR", type="long", notNull=false)    private long operatorAvatar;    //7.操作员头像编号
    @AnTableField(column="OPERATOR_MOBILE", type="string,21", notNull=false)    private String operatorMobile;    //8.操作员手机号
    @AnTableField(column="OPERATOR_EMAIL", type="string,64", notNull=false)    private String operatorEmail;    //9.操作员邮箱
    @AnTableField(column="OPERATOR_IP", type="string,18", notNull=false)    private String operatorIp;    //10.操作员工作IP
    @AnTableField(column="OPERATOR_CREATED", type="datetime", notNull=true)    private Timestamp operatorCreated;    //11.操作员创建时间,格式：yyyy-MM-dd hh:mm:ss
    @AnTableField(column="OPERATOR_MODIFIED", type="datetime", notNull=true)    private Timestamp operatorModified;    //12.操作员修改时间,格式：yyyy-MM-dd hh:mm:ss

    public String toString()
    {
        return Jsons.toString(this);
    }

    public String getOperatorCode()
    {
        return operatorCode;
    }

    public void setOperatorCode(String operatorCode)
    {
        this.operatorCode = operatorCode;
    }

    public String getOperatorPass()
    {
        return operatorPass;
    }

    public void setOperatorPass(String operatorPass)
    {
        this.operatorPass = operatorPass;
    }

    public String getOperatorPassSalt()
    {
        return operatorPassSalt;
    }

    public void setOperatorPassSalt(String operatorPassSalt)
    {
        this.operatorPassSalt = operatorPassSalt;
    }

    public int getOperatorStatus()
    {
        return operatorStatus;
    }

    public void setOperatorStatus(int operatorStatus)
    {
        this.operatorStatus = operatorStatus;
    }

    public int getOperatorType()
    {
        return operatorType;
    }

    public void setOperatorType(int operatorType)
    {
        this.operatorType = operatorType;
    }

    public String getOperatorName()
    {
        return operatorName;
    }

    public void setOperatorName(String operatorName)
    {
        this.operatorName = operatorName;
    }

    public long getOperatorAvatar()
    {
        return operatorAvatar;
    }

    public void setOperatorAvatar(long operatorAvatar)
    {
        this.operatorAvatar = operatorAvatar;
    }

    public String getOperatorMobile()
    {
        return operatorMobile;
    }

    public void setOperatorMobile(String operatorMobile)
    {
        this.operatorMobile = operatorMobile;
    }

    public String getOperatorEmail()
    {
        return operatorEmail;
    }

    public void setOperatorEmail(String operatorEmail)
    {
        this.operatorEmail = operatorEmail;
    }

    public String getOperatorIp()
    {
        return operatorIp;
    }

    public void setOperatorIp(String operatorIp)
    {
        this.operatorIp = operatorIp;
    }

    public Timestamp getOperatorCreated()
    {
        return operatorCreated;
    }

    public void setOperatorCreated(Timestamp operatorCreated)
    {
        this.operatorCreated = operatorCreated;
    }

    public Timestamp getOperatorModified()
    {
        return operatorModified;
    }

    public void setOperatorModified(Timestamp operatorModified)
    {
        this.operatorModified = operatorModified;
    }

}
